﻿<%@ Page Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeFile="AuditingOrder.aspx.cs"
    Inherits="Inventory_AuditingOrder" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="phMain" runat="Server">
    <table style="margin: 10px 10px 10px 10px; padding: 5px 5px 5px 5px;">
        <tr>
            <td colspan="2" align="center">
                <big><b>订单审核</b></big>
            </td>
        </tr>
        <tr>
            <td style="width: 109px; height: 17px;" align="right">
                餐厅名称：</td>
            <td style="width: 857px; height: 17px;">
                <asp:Label ID="lblStoreName" runat="server"></asp:Label>
                【<asp:Label ID="lblStoreID" runat="server"></asp:Label>】</td>
        </tr>
        <tr>
            <td style="width: 109px" align="right">
                订单编号：</td>
            <td style="height: 23px; width: 857px;">
                <asp:Label ID="lblOrderId" runat="server" Width="534px"></asp:Label></td>
        </tr>
                <tr>
            <td style="width: 109px" align="right">
                订单名称：</td>
            <td style="height: 23px; width: 857px;">
                <asp:Label ID="lblOrderName" runat="server" Width="534px"></asp:Label></td>
        </tr>
                <tr>
            <td style="width: 109px" align="right">
                是否加急：</td>
            <td style="height: 23px; width: 857px;">
                <asp:Label ID="lblRush" runat="server" Width="534px"></asp:Label></td>
        </tr>
                <tr>
            <td style="width: 109px" align="right">
                订货日期：</td>
            <td style="height: 23px; width: 857px;">
                <asp:Label ID="lblOrderDate" runat="server" Width="534px"></asp:Label></td>
        </tr>
                <tr>
            <td style="width: 109px" align="right">
                送货日期：</td>
            <td style="height: 23px; width: 857px;">
                <asp:Label ID="lblDeliveryDate" runat="server" Width="534px"></asp:Label></td>
        </tr>
        
        <tr>
            <td style="width: 109px" valign="top" align="right">
                物料明细：</td>
            <td>
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" HorizontalAlign="Left"
                    AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" Width="90%" CaptionAlign="Left">
                    <Columns>
                        <asp:BoundField DataField="MaterialID" HeaderText="物料编号" SortExpression="MaterialID" />
                        <asp:BoundField DataField="MaterialName" HeaderText="物料名称" SortExpression="MaterialName" />
                        <asp:BoundField DataField="OrderUnit" HeaderText="订货单位" SortExpression="OrderUnit" />
                        <asp:BoundField DataField="Spec" HeaderText="规格" SortExpression="Spec" />
                        <asp:BoundField DataField="Qty" HeaderText="订货数量" SortExpression="Qty" />
                    </Columns>
                    <HeaderStyle BackColor="DarkGray" ForeColor="Black" />
                    <AlternatingRowStyle BackColor="#E0E0E0" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td valign="top" align="right" style="height: 73px">
                说明：</td>
            <td style="height: 73px">
                <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Height="55px" Width="598px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="Dynamic"
                    ErrorMessage="*此项不能为空" ControlToValidate="TextBox1" SetFocusOnError="True"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
        <td></td>
            <td>
                <asp:Button ID="btnAccept" runat="server" Text="受理" Width="100px" CausesValidation="False"
                    OnClick="btnAccept_Click" />&nbsp;&nbsp;
                <asp:Button ID="btnReject" runat="server" Text="拒绝" Width="100px" ForeColor="Red"
                    OnClick="btnReject_Click" />&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnBack" runat="server" Text="返回" Width="100px" CausesValidation="False"
                    OnClick="btnBack_Click" />
                <asp:Label ID="lblMessage" runat="server" Width="400px"></asp:Label></td>
        </tr>
    </table>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="getOrderDetailByOrderID"
        TypeName="Inventory">
        <SelectParameters>
            <asp:QueryStringParameter Name="OrderID" QueryStringField="OrderID" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>
